package com.njsoft.mydemotest.pic.activity;

import android.app.Activity;
import android.content.Intent;

import com.njsoft.mydemotest.R;
import com.njsoft.mydemotest.pic.tools.RGlideUtil;

public class PicBaseActivity extends Activity {
    /**
     * 对跳转的动画可以重新自己定义
     *
     * @param intent
     */
    @Override
    public void startActivity(Intent intent) {
        super.startActivity(intent);
        overridePendingTransition(R.anim.activity_in, 0);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        overridePendingTransition(0, R.anim.activity_out);
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(0, R.anim.activity_out);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        RGlideUtil.clearMemory(this);
    }
}
